package com.phs.main.web.po;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 设备表
 * </p>
 *
 * @author Trent
 * @since 2020-07-07
 */
@Data
@EqualsAndHashCode
@ApiModel(value = "Equipment对象", description = "设备表")
public class Equipment implements Serializable {

	private static final long serialVersionUID = 1L;

	@ApiModelProperty(value = "设备表主码", hidden = true)
	@TableId(value = "equipment_ID", type = IdType.AUTO)
	private Long equipmentId;

	@ApiModelProperty(value = "设备名称")
	private String equipmentName;

	@ApiModelProperty(value = "设备的数量")
	private Long equipmentNum;

	@ApiModelProperty(value = "该设备开始使用的时间")
	@TableField("r_time")
	private LocalDateTime r_time;

	@ApiModelProperty(value = "设备损毁时间")
	@TableField("l_time")
	private LocalDateTime l_time;

	@ApiModelProperty(value = "备注")
	private String comment;


}
